package com.example.loop.service;

import com.example.loop.entity.Role;
import com.example.loop.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Liaorun
 */
@Service
public class RoleService {

    @Resource
    private RoleMapper roleMapper;

    public List<Role> findRoleByUserId(long id) {
        return roleMapper.findRoleByUserId(id);
    }
}